<h1 INDEX </h1>
<? echo $this->Html->link(array("ADD USER", 'action' => 'add')) ?>
<table>
    <tr>
        <th>ID</th>
        <th>FULLNAME</th>
        <th>USERNAME</th>
        <th>EMAIL</th>
        <th>PASSWORD</th>
        <th>PHONE</th>
        <th>COMPANY</th>
    </tr>
    <? foreach ($users as $user): ?>
    <tr>
        <td><? echo $user['User']['id'];?></td>
        <td><? echo $user['User']['fullname']; ?></td>
        <td><? echo $this->Html->link($user['User']['username'] , array('action' => 'view') , $user['User']['id']);?> </td>
        <td><? echo $user['User']['email'];?></td>
        <td><? echo $user['User']['password'];?></td>
        <td><? echo $user['User']['phone'];?></td>
        <td><? echo $user['User']['company'];?></td>
        <td><? echo $this->Html->link("DELETE" , array('action' => 'delete') , $user['User']['id'] ,null , 'Are U sure?')  ; ?></td>
        <td><? echo $this->Html->link("EDIT" , array('action' => 'edit') , $user['User']['id']) ?>   </td>
    </tr>
        <? endforeach; ?>
</table>